package com.example.certificate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.List;

import com.example.certificate.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 菜单表	
 * </p>
 *
 * @author hao
 * @since 2022-02-16 11:29:59
 */
@Getter
@Setter
@TableName("sys_resource")
@ApiModel(value = "SysResource对象", description = "菜单表	")
public class SysResource extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("别名")
    @TableField("alias_")
    private String alias;

    @ApiModelProperty("路由跳转地址")
    @TableField("path_")
    private String path;

    @ApiModelProperty("页面绝对地址")
    @TableField("component_")
    private String component;

    @ApiModelProperty("是否使用 1：使用 0：禁用")
    @TableField("enable_")
    private Integer enable;

    @ApiModelProperty("级别")
    @TableField("sort_")
    private Integer sort;

    @ApiModelProperty("meta")
    @TableField("meta_")
    private String metaDesc;

    @ApiModelProperty("父Id")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "子数据")
    @TableField(exist = false)
    private List<SysResource> children;

    @ApiModelProperty(value = "meta")
    @TableField(exist = false)
    private Meta meta;

    @ApiModelProperty(value = "标题描述")
    @TableField("label")
    private String label;
}
